package com.windliven.spoc.modules.init.common;

import lombok.Getter;

/**
 * @author sunboyuan
 */

@Getter
public enum BizEnum {
    //成功
    SUCCESS(200, "OK"),
    ERROR(1, "fail"),
    BAD_REQUEST(400, "Bad Request"),
    NOT_FOUND(404, "page not found"),
    INTERNAL_SERVER_ERROR(500, "server internal error"),
    NOT_LOGIN(40005, "not login"),
    INVALID_PARAM(40006, "invalid parameter")

    ;


    private Integer code;

    private String message;

    BizEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
